Rename gdk_gl_context_flush_buffer to gdk_gl_context_end_frame
authorAlexander Larsson <alexl@redhat.com>
Mon, 27 Oct 2014 15:33:37 +0000 (16:33 +0100)
committerAlexander Larsson <alexl@redhat.com>
Mon, 27 Oct 2014 15:33:37 +0000 (16:33 +0100)
This makes a lot more sense.

gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/gdkwindow.c
gdk/wayland/gdkglcontext-wayland.c
gdk/x11/gdkglcontext-x11.c

index 1fba34d507b69edbf8cc7edf20ced10eb0514446..1bfb17f7e78fb025db4d7862b25ec3de6a3179b5 100644 (file)
@@ -242,7 +242,7 @@ gdk_gl_context_get_visual (GdkGLContext *context)
 }
 
 /*< private >
- * gdk_gl_context_flush_buffer:
+ * gdk_gl_context_end_frame:
  * @context: a #GdkGLContext
  * @painted: The area that has been redrawn this frame
  * @damage: The area that we know is actually different from the last frame
@@ -256,13 +256,13 @@ gdk_gl_context_get_visual (GdkGLContext *context)
  * Since: 3.16
  */
 void
-gdk_gl_context_flush_buffer (GdkGLContext   *context,
-                             cairo_region_t *painted,
-                             cairo_region_t *damage)
+gdk_gl_context_end_frame (GdkGLContext   *context,
+                          cairo_region_t *painted,
+                          cairo_region_t *damage)
 {
   g_return_if_fail (GDK_IS_GL_CONTEXT (context));
 
-  GDK_GL_CONTEXT_GET_CLASS (context)->flush_buffer (context, painted, damage);
+  GDK_GL_CONTEXT_GET_CLASS (context)->end_frame (context, painted, damage);
 }
 
 /**
index b973eb2af972fb39568c4ea554c6b6669f1e3859..96d49246135a20e5fefae8750f895231ae6846cb 100644 (file)
@@ -41,17 +41,17 @@ struct _GdkGLContextClass
   GObjectClass parent_class;
 
   void (* update)          (GdkGLContext *context);
-  void (* flush_buffer)    (GdkGLContext *context,
-                            cairo_region_t *painted,
-                            cairo_region_t *damage);
+  void (* end_frame)    (GdkGLContext *context,
+                         cairo_region_t *painted,
+                         cairo_region_t *damage);
   gboolean (* texture_from_surface) (GdkGLContext    *context,
-                                    cairo_surface_t *surface,
-                                    cairo_region_t  *region);
+                                     cairo_surface_t *surface,
+                                     cairo_region_t  *region);
 };
 
-void            gdk_gl_context_flush_buffer       (GdkGLContext *context,
-                                                   cairo_region_t *painted,
-                                                   cairo_region_t *damage);
+void            gdk_gl_context_end_frame (GdkGLContext *context,
+                                          cairo_region_t *painted,
+                                          cairo_region_t *damage);
 
 G_END_DECLS
 
index 25d20b12821c40ffaaaf659c6b1e8a35430e0936..676a816be3a4ccb835f5b79ac887a89d0db4df15 100644 (file)
@@ -3086,9 +3086,9 @@ gdk_window_end_paint (GdkWindow *window)
 
           cairo_region_destroy (opaque_region);
 
-          gdk_gl_context_flush_buffer (window->gl_paint_context,
-                                       window->current_paint.region,
-                                       window->active_update_area);
+          gdk_gl_context_end_frame (window->gl_paint_context,
+                                    window->current_paint.region,
+                                    window->active_update_area);
 
           if (epoxy_has_gl_extension ("GL_GREMEDY_frame_terminator"))
             glFrameTerminatorGREMEDY();
index 8894e8bc8160f0f050428606024edabf7f234476..fbe79abf4071b510db91f8b47342a5b0cda8b79a 100644 (file)
@@ -117,9 +117,9 @@ gdk_wayland_window_invalidate_for_new_frame (GdkWindow      *window,
 }
 
 static void
-gdk_wayland_gl_context_flush_buffer (GdkGLContext *context,
-                                     cairo_region_t *painted,
-                                     cairo_region_t *damage)
+gdk_wayland_gl_context_end_frame (GdkGLContext *context,
+                                  cairo_region_t *painted,
+                                  cairo_region_t *damage)
 {
   GdkWindow *window = gdk_gl_context_get_window (context);
   GdkDisplay *display = gdk_window_get_display (window);
@@ -161,7 +161,7 @@ gdk_wayland_gl_context_class_init (GdkWaylandGLContextClass *klass)
   GdkGLContextClass *context_class = GDK_GL_CONTEXT_CLASS (klass);
 
   context_class->update = gdk_wayland_gl_context_update;
-  context_class->flush_buffer = gdk_wayland_gl_context_flush_buffer;
+  context_class->end_frame = gdk_wayland_gl_context_end_frame;
 }
 
 static void
index 7db5376de242d0a50297492d6b5f6c10e22e1401..6162b1048c1bec8e9cd924a910cc75bb86898d1b 100644 (file)
@@ -197,9 +197,9 @@ gdk_x11_window_invalidate_for_new_frame (GdkWindow      *window,
 }
 
 static void
-gdk_x11_gl_context_flush_buffer (GdkGLContext *context,
-                                 cairo_region_t *painted,
-                                 cairo_region_t *damage)
+gdk_x11_gl_context_end_frame (GdkGLContext *context,
+                              cairo_region_t *painted,
+                              cairo_region_t *damage)
 {
   GdkX11GLContext *context_x11 = GDK_X11_GL_CONTEXT (context);
   GdkWindow *window = gdk_gl_context_get_window (context);
@@ -433,7 +433,7 @@ gdk_x11_gl_context_class_init (GdkX11GLContextClass *klass)
   GdkGLContextClass *context_class = GDK_GL_CONTEXT_CLASS (klass);
 
   context_class->update = gdk_x11_gl_context_update;
-  context_class->flush_buffer = gdk_x11_gl_context_flush_buffer;
+  context_class->end_frame = gdk_x11_gl_context_end_frame;
   context_class->texture_from_surface = gdk_x11_gl_context_texture_from_surface;
 }